import request from '@/utils/request'
import { payApi } from '@/utils/comm'

// 查询列表
export function listOrderTypeConfig(query) {
  return request({
    url: `${payApi}/orderTypeConfig/list`,
    method: 'get',
    params: query
  })
}

// 查询详情
export function getOrderTypeConfig(id) {
  return request({
    url: `${payApi}/orderTypeConfig/` + id,
    method: 'get'
  })
}

// 新增
export function addOrderTypeConfig(data) {
  return request({
    url: `${payApi}/orderTypeConfig`,
    method: 'post',
    data: data
  })
}

// 修改
export function updateOrderTypeConfig(data) {
  return request({
    url: `${payApi}/orderTypeConfig`,
    method: 'put',
    data: data
  })
}

// 删除
export function delOrderTypeConfig(ids) {
  return request({
    url: `${payApi}/orderTypeConfig/` + ids,
    method: 'DELETE',
  })
}
